package com.biz.primus.ms.customercenter.feign.member;

import com.biz.primus.model.member.vo.*;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author jun.liu
 * @since 2017年11月3日
 * @usage
 * @reviewer
 */
@FeignClient(qualifier = "memberFeignClient", name = "service-member")//, fallback = DegradedMemberFeignClient.class)
public interface MemberFeignClient
{

    @PostMapping("soa/memberService/findMemberVoByMobile")
    MemberVo findMemberVoByMobile(@RequestParam("mobile") String mobile);

    @PostMapping("soa/memberService/registerByMobile")
    Boolean registerByMobile(@RequestParam("mobile") String mobile);

    @PostMapping("soa/memberService/getAllAddress")
    List<MemberAddressVo> getAllAddress(@RequestParam("memberId") Long memberId);

    @PostMapping("soa/memberService/addMemberAddessInfo")
    Boolean addMemberAddessInfo(@RequestBody MemberAddressVo reqVo);
}
